/*
 * @Author: cl
 * @Description: 
 * @Date: 2023-04-19 11:46:28
 * @LastEditTime: 2023-04-20 09:48:40
 * @FilePath: \vue3\src\api\moudules\score.js
 * @LastEditors: cl
 */
import axios from 'axios'
 
axios.defaults.baseURL = 'http://localhost:4000/api'
 
export const addScore = (data) => axios.post('/score/add',data).then(res => res.data)
 
export const getScoreList = (data) => axios.get('/score/findAll',{params:data}).then(res => res.data)
 
export const delScore = (data) => axios.delete(`/score/${data.id}`).then(res => res.data)
 
export const updateScore = (data) => axios.patch(`/score/${data.id}`,data).then(res => res.data)
/**
 * 科目列表
 */
export const getSubjectList = (data) => axios.get('/subject/findAll',{params:data}).then(res => res.data)

